package com.example.shiro.service.impl;

import com.example.shiro.entity.UserInfo;
import com.example.shiro.mapper.UserInfoMapper;
import com.example.shiro.service.base.impl.BaseServiceImpl;
import com.example.shiro.service.inter.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

/**
 * @Author: lex
 * @Date: 2018/10/13
 */
@Service
public class UserInfoServiceImpl extends BaseServiceImpl<UserInfo> implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public UserInfo selectByName(String username) {
        UserInfo userInfo = new UserInfo();
        userInfo.setIsDelete(0);
        userInfo.setUsername(username);
        return userInfoMapper.selectOne(userInfo);
    }

}
